﻿<%@ page title="" language="C#" masterpagefile="~/Site.master" autoeventwireup="true" inherits="DatVeB2, App_Web_yyzeciu0" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script type="text/javascript">

        function showRoundTrip() {
            var a = (document.getElementById("MainContent_Label3").value);

        if (a == "Khứ hồi") {
            document.getElementById('table2').removeAttribute("style");
        }
    else {
            document.getElementById('table2').setAttribute("style", "display:none");
        }

    return false;
}
window.onload = showRoundTrip;
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <section id="content">
		<article>
            <div class="pad_1" id="divDatVeB" style="background: #F4F4F4;">
				<p class="titleh2">Đặt vé máy bay:</p>

                <div id="div2">
                <form id="form2" class="inactive" action="">
            <table class="table2">
            <tr>
                    <td style="width:100%" colspan="2"><h3>Bước 2/4</h3></td>
                </tr>
                <tr>
                    <td style="width:100%" colspan="2">Loại chuyến bay: <asp:Label ID="Label3" runat="server" Text="Một chiều"></asp:Label></td>
                </tr>
                <tr>
                    <td style="width:100%" colspan="2">Chọn một chuyến bay cho ngày đi: 
                    <%--<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>/<asp:Label ID="Label4" runat="server" Text="Label"></asp:Label>/<asp:Label ID="Label5" runat="server" Text="Label"></asp:Label>--%>
                        &nbsp;<asp:Label ID="Label1" runat="server" 
                            Text="Xin lỗi, không có chuyến bay nào theo yêu cầu" Visible="False" 
                            ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan = "2">
                        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" class="gridview"
                            AutoGenerateSelectButton="True" CellPadding="4" ForeColor="#333333" CellSpacing="5" 
                            GridLines="None" AutoGenerateColumns="False" 
                            onselectedindexchanged="GridView1_SelectedIndexChanged">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:BoundField DataField="maCB" HeaderText="Mã CBay">
                                <ControlStyle Width="90px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="tenCB" HeaderText="Tên CBay">
                                <ControlStyle Width="150px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ngaygiodi" HeaderText="Ngày giờ đi">
                                <ControlStyle Width="160px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ngayGioden" HeaderText="Ngày giờ đến">
                                <ControlStyle Width="160px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="loaive" HeaderText="Loại vé">
                                <ControlStyle Width="90px"/>
                                </asp:BoundField>
                                <asp:BoundField DataField="giave" HeaderText="Giá vé">
                                <ControlStyle Width="65px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="donvitien" HeaderText="Đơn vị tiền">
                                <ControlStyle Width="95px" />
                                </asp:BoundField>
                            </Columns>
                            <EditRowStyle BackColor="#2461BF" Height="28px" />
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EFF3FB" BorderColor="#0099FF" BorderStyle="Solid" 
                                BorderWidth="1px" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333"/>
                            <SortedAscendingCellStyle BackColor="#F5F7FB" />
                            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                            <SortedDescendingCellStyle BackColor="#E9EBEF" />
                            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                    <asp:Label ID="Label2" runat="server" Text="Yêu cầu chọn một chuyến bay" 
                            Visible="False" ForeColor="Red" ></asp:Label> 
                    
                    </td>
                </tr>
                </table>
                <table id="table2" class="table2">
                <tr>
                    <td style="width:100%" colspan="2">Chọn một chuyến bay cho ngày về:
                        &nbsp;<asp:Label ID="Label9" runat="server" 
                            Text="Xin lỗi, không có chuyến bay nào theo yêu cầu" Visible="False" 
                            ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan = "2">
                        <asp:GridView ID="GridView2" runat="server" AllowSorting="True" class="gridview"
                            AutoGenerateSelectButton="True" CellPadding="4" ForeColor="#333333" CellSpacing="5" 
                            GridLines="None" AutoGenerateColumns="False" 
                            onselectedindexchanged="GridView2_SelectedIndexChanged">
                            <AlternatingRowStyle BackColor="White" />
                            <Columns>
                                <asp:BoundField DataField="maCB" HeaderText="Mã CBay">
                                <ControlStyle Width="90px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="tenCB" HeaderText="Tên CBay">
                                <ControlStyle Width="150px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ngaygiodi" HeaderText="Ngày giờ đi">
                                <ControlStyle Width="160px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ngayGioden" HeaderText="Ngày giờ đến">
                                <ControlStyle Width="160px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="loaive" HeaderText="Loại vé">
                                <ControlStyle Width="90px"/>
                                </asp:BoundField>
                                <asp:BoundField DataField="giave" HeaderText="Giá vé">
                                <ControlStyle Width="65px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="donvitien" HeaderText="Đơn vị tiền">
                                <ControlStyle Width="95px" />
                                </asp:BoundField>
                            </Columns>
                            <EditRowStyle BackColor="#2461BF" Height="28px" />
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <RowStyle BackColor="#EFF3FB" BorderColor="#0099FF" BorderStyle="Solid" 
                                BorderWidth="1px" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333"/>
                            <SortedAscendingCellStyle BackColor="#F5F7FB" />
                            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                            <SortedDescendingCellStyle BackColor="#E9EBEF" />
                            <SortedDescendingHeaderStyle BackColor="#4870BE" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                    <asp:Label ID="Label10" runat="server" Text="Yêu cầu chọn một chuyến bay" 
                            Visible="False" ForeColor="Red" ></asp:Label> 
                    
                    </td>
                </tr>
                </table>
                <table class="table2">
                <tr>
                    <td>
                        <asp:Button ID="Button3" runat="server" Text="Tiếp theo" class="button2" 
                            onclick="Button3_Click" ValidationGroup="Validate1"
                            /></td>
                    <td>
                        <asp:Button ID="Button4" runat="server" Text="Trở lại" class="button1" onclick="Button4_Click" ValidationGroup="Validate2"
                             /></td>
                    
                </tr>
                
            </table>
                </form>
                </div>
         </article>
     </section>
     
</asp:Content>
